﻿<?php
$parser = $model->get_parser();

$introduction = $parser->__get('introduction');
echo '<div><h1>Introduction</h1>' , "\n";
foreach($introduction->get_elements() as $elem){
	echo utf8_decode($elem) , "\n";
}
echo '</div>';

echo '<div><h1>Sommaire</h1>' , "\n";
$outline = $parser->__get('outline');
if ($outline)
echo utf8_decode((string)$outline) , "\n";
echo'</div>' , "\n";

echo '<div><h1>Article</h1>' , "\n";
$sections = $parser->__get('sections');
foreach($sections as $element){
	//if (get_class($element) == 'Table') echo 'e';
	echo utf8_decoed($element) , "\n";
}
echo'</div>' , "\n";
?>